package org.helgoboss.janana_artwork

import java.awt.{Image, Toolkit}

private[this] object ResourceUtil {
    private val PathToBase = "/org/helgoboss/janana_artwork";
    
    def getImage(relativePath: String) = {
        val pathToResource = PathToBase + "/" + relativePath
		val resourceUrl = getClass.getResource(pathToResource)
		Toolkit.getDefaultToolkit.getImage(resourceUrl)
    }
    
    
}